package com.supermarket.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单配送信息实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderDelivery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 配送ID
     */
    private Integer id;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 骑手ID
     */
    private Integer riderId;

    /**
     * 取件时间
     */
    private Date pickupTime;

    /**
     * 预计送达时间
     */
    private Date estimatedDeliveryTime;

    /**
     * 实际送达时间
     */
    private Date actualDeliveryTime;

    /**
     * 配送状态：PENDING-待分配，ASSIGNED-已分配，PICKED-已取件，DELIVERED-已送达
     */
    private String deliveryStatus;

    /**
     * 配送备注
     */
    private String deliveryNote;

    /**
     * 骑手评分（1-5分）
     */
    private Integer riderRating;

    /**
     * 骑手评价
     */
    private String riderComment;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;
} 